import request from '@/utils/request'
//  获取商品审核列表
export function GetAuditGoodsPeopleList(params) {
  return request({
    url: '/cloudApi/goods/audit/getGoodsList',
    method: 'get',
    params
  })
}

// 商品信息审批
export function AuditGoods(data) {
    return request({
        url: '/cloudApi/goods/audit/auditGoods',
        method: 'post',
        data
    })
}

// 供应商信息审批
export function AuditSupply(data) {
    return request({
        url: '/cloudApi/goods/audit/auditGoodsSupplier',
        method: 'post',
        data
    })
}

//  获取供应商审核人列表
export function GetAuditSupplyPeopleList(params) {
    return request({
      url: '/cloudApi/goods/audit/getGoodsSupplierList',
      method: 'get',
      params
    })
  }

  //  获取商品的详情信息
export function GetGoodsDetails(params) {
  return request({
    url: '/cloudApi/goods/audit/getGoodsInfo',
    method: 'get',
    params
  })
}
  
  //  获取审核历史记录
  export function GetHistoryDetails(params) {
    return request({
      url: '/cloudApi/goods/audit/getHistoryList',
      method: 'get',
      params
    })
  }

    //  获取审核历史记录中的价格变更记录
    export function GetHistoryChangeDetails(params) {
      return request({
        url: '/cloudApi/goods/audit/getGoodsUpdInfo',
        method: 'get',
        params
      })
    }

    // 更改税率税码
export function EditRate(data) {
  return request({
      url: '/cloudApi/goods/goods/updateTax',
      method: 'post',
      data
  })
}
    